package com.youdoneed.user.query;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;
import com.youdoneed.user.model.SearchWord;

import javax.annotation.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;

/**
 * QSearchWord is a Querydsl query type for SearchWord
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QSearchWord extends com.querydsl.sql.RelationalPathBase<SearchWord> {

    private static final long serialVersionUID = 1915816255;

    public static final QSearchWord SearchWord = new QSearchWord("SearchWord");

    public final DateTimePath<java.util.Date> createTime = createDateTime("createTime", java.util.Date.class);

    public final StringPath searchWordId = createString("searchWordId");

    public final StringPath userId = createString("userId");

    public final StringPath word = createString("word");

    public final com.querydsl.sql.PrimaryKey<SearchWord> primary = createPrimaryKey(searchWordId);

    public QSearchWord(String variable) {
        super(SearchWord.class, forVariable(variable), "null", "SearchWord");
        addMetadata();
    }

    public QSearchWord(String variable, String schema, String table) {
        super(SearchWord.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QSearchWord(String variable, String schema) {
        super(SearchWord.class, forVariable(variable), schema, "SearchWord");
        addMetadata();
    }

    public QSearchWord(Path<? extends SearchWord> path) {
        super(path.getType(), path.getMetadata(), "null", "SearchWord");
        addMetadata();
    }

    public QSearchWord(PathMetadata metadata) {
        super(SearchWord.class, metadata, "null", "SearchWord");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(createTime, ColumnMetadata.named("createTime").withIndex(4).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(searchWordId, ColumnMetadata.named("searchWordId").withIndex(1).ofType(Types.VARCHAR).withSize(20).notNull());
        addMetadata(userId, ColumnMetadata.named("userId").withIndex(2).ofType(Types.VARCHAR).withSize(20));
        addMetadata(word, ColumnMetadata.named("word").withIndex(3).ofType(Types.VARCHAR).withSize(128));
    }

}

